using UnityEngine;
using System.Collections;

public class SelectShowInfo : MonoBehaviour
{
	
	public GameObject operationLayer;
	public string methodName;
	int index;

	// Use this for initialization
	void Start ()
	{
		string mName = transform.name;
		index = int.Parse (mName.Substring (mName.Length - 1));
	}
	
	void OnActivate (bool isActive)
	{
		if (isActive == true) {
			operationLayer.SendMessage (methodName, index, SendMessageOptions.DontRequireReceiver);
		}
	}
}
